<?php
namespace modules\setting\model;

use think\Model;
/**
 * CREATE TABLE "settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "value" text NOT NULL, "type" varchar NOT NULL, "description" text NOT NULL)
 * 系统设置模型
 * @package modules\setting\model
 * @property int $id
 * @property string $name
 * @property string $value
 * @property string $type
 * @property string $description
 */
class Setting extends Model{
    protected $table = 'settings';
    public const TYPE_TEXT = 'text';
    public const TYPE_JSON = 'json';
    
    // public const TYPE_TEXT = 'text';
    // public const TYPE_NUMBER = 'number';
    // public const TYPE_SELECT = 'select';
    // public const TYPE_RADIO = 'radio';
    // public const TYPE_CHECKBOX = 'checkbox';
    // public const TYPE_PASSWORD = 'password';
    // public const TYPE_FILE = 'file';
    // public const TYPE_IMAGE = 'image';
    // public const TYPE_EMAIL = 'email';
    // public const TYPE_URL = 'url';
    // public const TYPE_DATE = 'date';
    // public const TYPE_DATETIME = 'datetime';
    // public const TYPE_TIME = 'time';
    // public const TYPE_COLOR = 'color';
    // public const TYPE_TEXTAREA = 'textarea';

}